home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 235 / Issue 235 - September 2007 - DPCS0907DVD.ISO / Extras / NetObjects Fusion / NOF10.exe / data1.cab / FSI / lib / nof / dataobjects / SelectedDataOption.js < prev   
Encoding:
JavaScript  |  2007-04-11  |  1022 b   |  30 lines

  1. /** Class SelectedDataOption
  2. Description : Implement the selected data option object
  3. */
  4. function NOF_SelectedDataOption(_id,_dataOption) {
  5.   this.__proto__ = NOF_SelectedDataOption.prototype;  
  6.  
  7.   this.id    = _id;
  8.   this.dataOption = _dataOption;
  9. }
  10. function NOF_SelectedDataOption_ProtoBuilder() {
  11.   var member = NOF_SelectedDataOption.prototype;
  12.   member.id = null;
  13.   member.dataOption = null;
  14.   member.isNew = true;
  15.   var method = NOF_SelectedDataOption.prototype;
  16.   method.getId = function getId ()    { return this.id; }
  17.   method.setId = function setId (_id) { this.id = _id;  }  
  18.  
  19.   method.getDataOption = function getDataOption ()            { return this.dataOption;       }
  20.   method.setDataOption = function setDataOption (_dataOption) { this.dataOption = _dataOption;} 
  21.   
  22.   method.equals = function equals (obj) {
  23.     if (this.id == obj.id)
  24.       return true;
  25.     return false;
  26.   }
  27. }
  28. NOF_SelectedDataOption_ProtoBuilder();
  29. NOF.__proto__.SelectedDataOption = NOF_SelectedDataOption;
  30.